package com.qdlc.p2p.biz.executer.impl;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.executer.BaseExecuter;
import com.qdlc.p2p.common.constant.ChangeReasonType;


/**
 * 体验金利息
 *
 * @author yy
 * @version 1.0
 * 
 */
@Service
@Scope(value=ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class InterestExchangeExecuter extends BaseExecuter {

    @Override
	public void handleAccountWithLog() {
		AccountChangeExecuter accountChangeExecuter = new AccountChangeExecuter.Builder()
				.setUserId(user.getUserId())
				.setOperateMoney(this.money)
				.setChangeReasonType(ChangeReasonType.EXPERIENCE_INTEREST)
				.build();
		accountChangeExecuter.change();
	}
}
